﻿package src.game {
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	
	public class Holder {
		protected var holder:Sprite;
		
		public function Holder(display:DisplayObjectContainer) {
			holder = new Sprite();
			display.addChild(holder);
		}
		
		public function setSize(width:int, height:int):void {
			//holder.graphics.beginFill(0xffffff);
			holder.graphics.drawRect(0, 0, width, height);
		}
		
		public function setPosition(x:int, y:int):void {
			holder.x = x;
			holder.y = y;
		}
		
		public function getWidth():int {
			return holder.width;
		}
		
		public function getHeight():int {
			return holder.height;
		}
		
		public function getX():int {
			return holder.x;
		}
		
		public function getY():int {
			return holder.y;
		}
		
		public function hide():void {
			holder.visible = false;
		}
		
		public function show():void {
			holder.visible = true;
		}
	}
}